package silo.dungeonbuddy;

public class AttackForm extends Form
{
	private Unit unit;
	private Power power;
	private int bonus;
	private int roll;
	private int damage;
	
	public AttackForm(String eName, Start eGame, int eX, int eY, int eWidth, int eHeight, String eTitle, Unit eUnit)
	{
		super(eName,eGame,eX,eY,eWidth,eHeight,eTitle);
		unit = eUnit;
	}//constructor
	
	public void closingEvent()
	{
		if(buttons.size()>0)
		{
			Button b = (Button)buttons.get(0);
			if(b.getLabel().equals("Roll to hit"))
			{
				//nothing
			}else//if(b.getLabel().equals("Roll to hit"))
			{
				//TODO
			}//else -- if(b.getLabel().equals("Roll to hit"))
		}else//if(buttons.size()>0)
		{
			//TODO
		}//else -- if(buttons.size()>0)
	}//closingEvent()
	
	//Getters
	public Unit getUnit()
	{
		return unit;
	}
	public int getBonus()
	{
		return bonus;
	}
	public int getRoll()
	{
		return roll;
	}
	public int getDamage()
	{
		return damage;
	}
	public Power getPower()
	{
		return power;
	}
	
	//SETTERS
	public void setDamage(int eDamage)
	{
		damage = eDamage;
	}
	public void setUnit(Unit eUnit)
	{
		unit=eUnit;
	}
	public void setBonus(int eBonus)
	{
		bonus=eBonus;
	}
	public void setRoll(int eRoll)
	{
		roll=eRoll;
	}
	public void setPower(Power ePower)
	{
		power=ePower;
	}
}//Class AttackForm